package com.yuyue.springFramework.note01.entity;

/**
 * 创建一个以参数类作为成员的类
 */
public class ArgsEntity {
    private String name;
    private ArgsOne argsOne;

    //无参构造
    public ArgsEntity(){}
    //带参构造
    public ArgsEntity(String name, ArgsOne argsOne){
        this.name = name;
        this.argsOne = argsOne;
    }

    //set、get和toString方法
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public ArgsOne getArgsOne() {
        return argsOne;
    }

    public void setArgsOne(ArgsOne argsOne) {
        this.argsOne = argsOne;
    }

    @Override
    public String toString() {
        return "ArgsEntity{" +
                "name='" + name + '\'' +
                ", argsOne=" + argsOne +
                '}';
    }
}